var ws = require('nodejs-websocket');

// Scream server example: "hi" -> "HI!!!"
var server = ws
  .createServer(function (conn) {
    // console.log('New connection');
    // conn.on('text', function (str) {
    //   console.log('Received ' + str);
    //   conn.sendText(str.toUpperCase() + '!!!');
    // });
    // conn.on('close', function (code, reason) {
    //   console.log('Connection closed');
    // });

    conn.on('connection', (code) => {
      console.log(code);
    });
  })
  .listen(10011);
